package router

import (
	. "configuration/handler"
	"github.com/gin-gonic/gin"
)

func Initialize() *gin.Engine {
	router := gin.Default()
	router.GET("/", Home)
	router.GET("/configs/:key", ConfigGet)
	router.POST("/configs", ConfigAdd)
	router.PUT("/configs/:key", ConfigEdit)
	router.DELETE("/configs/:key", ConfigDel)
	return router
}
